package oo1;

import java.util.Scanner;

public class User {
	String name = "laoliu";
	String password = "12345678";

//	public void changePass() {
//		Scanner in = new Scanner(System.in);
//		while (true) {
//			System.out.println("亲输入用户名和密码：");
//			String oldName = in.next();
//			String oldPass = in.next();
//			if (name.equals(oldName) && password.equals(oldPass)) {
//				System.out.println("请输入新密码：");
//				password = in.next();
//				break;
//			}
//			System.out.println("信息不匹配，不能修改");
//		}
//	}

	public void showInfo() {
		System.out.println("这个用户叫" + name + ",密码是：" + password);
	}
}
